<?PHP
if (!session_start()) { session_start(); }


if (isset($_SESSION['lgn']) && $_SESSION['lgn']=="AVADfend3r") {
// Define database connection constants
	define('DB_HOST', 'localhost');
	define('DB_USER', 'phillipv_user1');
	define('DB_PASSWORD', 'pas');
	define('DB_NAME', 'phillipv_AVA');
	
	/*define('DB_USER', 'root');
	define('DB_PASSWORD', 'SQLfender');
	define('DB_NAME', 'masterlog');*/
	
	define('CURRENT_SEASON', '2009');
	$dbc = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME) or die('Error connecting to MySQL server.');
}

if (isset($_POST['submit'])) {
	$SQLss=$_POST['sqltype'];
	$sendss=mysqli_query($dbc,$SQLss) or die(mysqli_error($dbc));
	print 'done';
}

//die(header("Location: checkdb.php"));

?>